import { definePropType } from '@/utils'

export default {
  treeData: definePropType<any>(Array),
  fields: {
    type: definePropType<Record<string, any>>(Object),
    default: {
      children: 'children',
      label: 'name',
      value: 'orgUnitId'
    }
  },
  nodeKey: {
    type: String,
    default: 'id'
  },
  showSearch: {
    type: Boolean,
    default: true
  }
}
